/***************************************************************************
 *   Copyright (C) 2007 by Jiří Němec   *
 *   nemec.jiri@gmail.com   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/


#ifndef SLOVNIQ_H
#define SLOVNIQ_H

#include <QMainWindow>
#include <QFile>
#include <QLineEdit>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QTextBrowser>
#include <QComboBox>
#include <QSettings>
#include <QDialog>
#include "hashtable.h"
#include "hledani.h"
#include "radek.h"
#include "vytvorslovnik.h"
//#include <QtDebug>



class Slovniq:public QMainWindow {
    Q_OBJECT

public:
    Slovniq();
    ~Slovniq();

private slots:
    void zmenaStatusu( const QString &);
    void vysledekHledani (const QVector<Radek> &);
    void hledatUrcite ();
    void hledatZive (const QString &);
    void linkHovered(const QString&);
    void webHandler();
signals:
    void startHledani(const QString &);
    void stopHledani();

private:
    void hledani (const QString &);
    QLineEdit *hledaSe;
    QTextBrowser *vystup;
    QComboBox *jazyk;
    QStatusBar *stav;
    QVBoxLayout *vertikalne;
    QHBoxLayout *horizontalne;
    Hledani *vlaknoHledani;
    QSettings *nastaveni;
    HashTabulka * slovnik;
    QString hledany;
    QString oznacene;
    SlovnikData *slovnikData;
    bool hledatUrciteB;
};

#endif
